package cn.wolfcode.mycat.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: Jason
 * @Date: 2021/04/09/11:11
 * @Description:
 */
@Slf4j
@Service
public class TestService {
	
	@Resource
	private List<IHandler> handlerList;
	
	
	public void test(Map<String, Object> context) {
		handlerList.stream().forEach(handler -> handler.test(context));
	}
}
